enable_language(ASM)
set_property(SOURCE ${ARCH}/atoms.S PROPERTY LANGUAGE C)
set_property(SOURCE ${ARCH}/atoms.S PROPERTY COMPILE_FLAGS -D__ASSEMBLY__)

SET(ARCH_SOURCES 
	${ARCH}/ArchController.cpp
	${ARCH}/ArchCpu.cpp
	${ARCH}/ArchPager.cpp
	${ARCH}/ArchPlatform.cpp
	${ARCH}/atoms.S
	)
#SET_TARGET_PROPERTIES(brain PROPERTIES LINK_FLAGS "-Wl,-b,elf32-littlearm -Wl,-m,armelf -Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/kernel.lds")

SET(ARCH_LINK_FLAGS "-Wl,-b,elf32-littlearm -Wl,-Map=gobeeos.map -Wl,--cref -Wl,-m,armelf -Wl,-lgcc -Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/kernel.lds")
SET(ARCH_COMPILE_FLAGS "-O0 -march=armv5te -mcpu=arm926ej-s -marm -mfloat-abi=softfp")
